package com.csproj.dispatch.repository;

import com.csproj.dispatch.domain.Logistics;
import com.csproj.dispatch.domain.ProductInfo;
import org.springframework.stereotype.Repository;

import org.springframework.data.jpa.repository.*;

import java.util.List;


/**
 * Spring Data JPA repository for the ProductInfo entity.
 */
@SuppressWarnings("unused")
@Repository
public interface ProductInfoRepository extends JpaRepository<ProductInfo, String> {

    ProductInfo findFirstByContainerIdAndDeletionTimeIsNull(String containerId);

    @Query(" from ProductInfo where containerId in (?1) ")
    List<ProductInfo> findByContainerIds(List<String> containerIds);
}
